package edu.sctu.renpingan.mysubwaysystem.util;

import edu.sctu.renpingan.mysubwaysystem.appbean.SubwayAppbean;

/**
 * Created by renpingan on 2015/6/6.
 */
public class EmergencyDeth {
    public String emergency="火灾，地震，恐怖分子，踩踏";
    private SubwayAppbean subwayAppbean;




    public EmergencyDeth(SubwayAppbean subwayAppbean){
        this.subwayAppbean=subwayAppbean;
    }

    public boolean Emergency(){
        boolean is_Emergency=false;
        if (emergency.contains(subwayAppbean.emergency)){
            is_Emergency=true;
        }else {
            is_Emergency=false;
        }
        return is_Emergency;
    }

}
